package edu.sctu.zhuyingzhi.month201505.day20150512.abstractTest;

/**
 * Created by user13 on 2015/5/12.
 */
public class Extends extends Abstract{
    private String name;
    private int number;
    private String Sex;
    public Extends(String name,int number,String Sex){
        this.name=name;
        this.number=number;
        this.Sex=Sex;

    }

    @Override
    public void getName() {
        System.out.println(name);

    }

    @Override
    public void getNumber() {
       if (number==10086)
           System.out.println("中国移动");
    }

    @Override
    public void getSex() {
       if (Sex.equals("男"))
           System.out.println("是男的");
        else
           System.out.println("是女的");
    }
}
